package baseFx.common.config.apollo;

import com.ctrip.framework.foundation.internals.provider.DefaultApplicationProvider;
import com.ctrip.framework.foundation.spi.provider.ApplicationProvider;
import com.ctrip.framework.foundation.spi.provider.Provider;

public class ApolloApplicationProvider extends DefaultApplicationProvider {
    public static String appId;

    @Override
    public String getAppId() {
        if (appId == null) {
            return super.getAppId();
        }
        return appId;
    }

    @Override
    public Class<? extends Provider> getType() {
        return ApplicationProvider.class;
    }
}
